package day04;

import jdk.nashorn.api.scripting.ScriptObjectMirror;

import java.util.Scanner;

public class CommandBySwitch {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        System.out.println("请选择功能：1.存款 2.取款 3.查询余额 4.退卡");
        int Command = scan.nextInt();
        /*switch (Command){
            case 1:
                System.out.println("存款业务。。。");
                break;
            case 2:
                System.out.println("取款业务。。。");
                break;
            case 3:
                System.out.println("查询余额业务。。");
                break;
            case 4:
                System.out.println("退卡成功");
                break;
            default:
                System.out.println("输入错误");
        }

         */

        if (Command==1){
            System.out.println("存款功能。。。");
        }else if (Command==2){
            System.out.println("取款功能。。。。");
        }else if (Command==3){
            System.out.println("查询功能。。。");
        }else if (Command==4){
            System.out.println("退卡成功");
        }else {
            System.out.println("输入错误");
        }

        //System.out.println(Command);

    }
}
